package com.gluck.cases.core.modal.dto;

import com.gluck.cases.common.utils.annotations.TestCaseField;
import com.gluck.cases.core.modal.BaseEntity;

/**
 * @ClassName TestCaseDTO
 * @Desc 测试用例dto
 * @Author shiyongzhe
 * @Date 2022/5/23 - 10:07 下午
 **/
public class TestCaseDTO extends BaseEntity {

    // 功能编号
    @TestCaseField(name = "功能编号", fieldName = "caseNo")
    private String caseNo;

    // 功能名称
    @TestCaseField(name = "功能名称", fieldName = "caseName")
    private String caseName;

    // 测试名称
    @TestCaseField(name = "测试名称", fieldName = "testName")
    private String testName;

    // 接口地址
    @TestCaseField(name = "接口地址", fieldName = "apiPath")
    private String apiPath;

    // 请求参数
    @TestCaseField(name = "请求参数", fieldName = "params")
    private String params;

    // 期望结果
    @TestCaseField(name = "期望结果", fieldName = "expectResult")
    private String expectResult;

    // 实际结果
    @TestCaseField(name = "实际结果", fieldName = "actualResult")
    private String actualResult;

    @TestCaseField(name = "请求方法", fieldName = "requestMethod")
    private String requestMethod;
//
//    @TestCaseField(name = "所属模块", fieldName = "category")
//    private String category;
//
//    @TestCaseField(name = "所属服务", fieldName = "service")
//    private String service;

//    public String getCategory() {
//        return category;
//    }
//
//    public void setCategory(String category) {
//        this.category = category;
//    }
//
//    public String getService() {
//        return service;
//    }
//
//    public void setService(String service) {
//        this.service = service;
//    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getCaseNo() {
        return caseNo;
    }

    public void setCaseNo(String caseNo) {
        this.caseNo = caseNo;
    }

    public String getCaseName() {
        return caseName;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName;
    }

    public String getTestName() {
        return testName;
    }

    public void setTestName(String testName) {
        this.testName = testName;
    }

    public String getApiPath() {
        return apiPath;
    }

    public void setApiPath(String apiPath) {
        this.apiPath = apiPath;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getExpectResult() {
        return expectResult;
    }

    public void setExpectResult(String expectResult) {
        this.expectResult = expectResult;
    }

    public String getActualResult() {
        return actualResult;
    }

    public void setActualResult(String actualResult) {
        this.actualResult = actualResult;
    }


    @Override
    public String toString() {
        return "TestCaseDTO{" +
                "caseNo='" + caseNo + '\'' +
                ", caseName='" + caseName + '\'' +
                ", testName='" + testName + '\'' +
                ", apiPath='" + apiPath + '\'' +
                ", params='" + params + '\'' +
                ", expectResult='" + expectResult + '\'' +
                ", actualResult='" + actualResult + '\'' +
                ", requestMethod='" + requestMethod + '\'' +
                '}';
    }
}
